﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
using Microhard.ApproveWorkflow.Models;
using Microhard.ApproveWorkflow.DataAccess;


namespace Microhard.ApproveWorkflow.DTO
{
    public class WorkflowDataMaper
    {
        public static void Init()
        {
            #region WorkflowType
            Mapper.CreateMap<ApproveFlowTypeModel, t_WorkFlowType>();
            Mapper.CreateMap<t_WorkFlowType, ApproveFlowTypeModel>();
            #endregion

            #region FlowChart
            Mapper.CreateMap<ApproveFlowChat, t_FlowChart>();
            Mapper.CreateMap<t_FlowChart, ApproveFlowChat>();
            #endregion

            #region WorkflowModel
            Mapper.CreateMap<WorkflowModel, t_WorkflowBusinessSheetRelations>();
            Mapper.CreateMap<t_WorkflowBusinessSheetRelations, WorkflowModel>();
            #endregion

            #region Workflow Activity
            Mapper.CreateMap<ActivityModel, t_ActivityInWorkFlow>();
            Mapper.CreateMap<t_ActivityInWorkFlow, ActivityModel>();
            #endregion
        }
    }
}
